﻿using System;
using ASPNETVN.PORTAL.Components.UI;
using ASPNETVN.PORTAL.Components.Helpers;
using WEATHER.Components;

namespace ThoiTiet.Modules.ProvinceWeather.Controls
{
    public partial class CurrentWeather : ModulePage
    {
        protected string PathFlash = "";

        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack == false)
            {
                flash.Attributes.Add("src", this.Settings["PathFlash"].ToString());

                //ContentPage.InnerHtml = Province.GetCurrentWeatherOnline();
               
            }            
        }

        protected void butView_Click(object sender, EventArgs e)
        {
            HttpUrlBuilder.BuildModulePageUrl(this.ModuleID, 0, ModulePages.DetailProvinceWeather, "strItemID={0}", "sdsdsd");
            Response.Redirect("Default.aspx?tabid=e64cdc61-7e76-482a-b720-5490fd569e0a&provinceid=" + ddlProvinces.SelectedValue);
        }
    }
}